package com.fyy.socketweb.controller;

import com.fyy.socketweb.service.WebSocketServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author fyy
 * @Description 界面控制
 * @Date 2021/1/4 17:06
 */
@Controller
public class SocketController {

    @Autowired
    private WebSocketServer webService;

    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    @GetMapping("/webSocket2")
    public String socket() {
        return "webSocket";
    }

}
